<?php
/**
 * Created by PhpStorm.
 * User: angl
 * Date: 2016/12/29
 * Time: 14:35
 */

namespace AuctionBack\Model;


use Think\Model\RelationModel;

class DealerAuctionedModel extends RelationModel
{
    protected $trueTableName = 'au_dealer_auctioned';

    /*
     * 模型自动完成
     */
    protected $_auto = array(
        array('create_time', 'timeNow', self::MODEL_INSERT, 'function'),
    );

    protected $fields = array(
        'ad_id',    //自增编号
        'dealer_id', //车商ID
        'man_id',   //提车人ID
        'order_id', //拍单ID
        'take_method', //提车方式
        'createtime',  //创建时间
        'status',   //状态是否有效
        'trade_price', //成交价格
    );
}